import { Tooltip } from "antd";

const MyToolTip = ({ placement, title, children }) => {
  return (
    <Tooltip
      placement={placement}
      title={title.split("\n").map((d, i) => (
        <p key={i}>{d}</p>
      ))}
    >
      <span title="">{children}</span>
    </Tooltip>
  );
};
export default MyToolTip;
